<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>昆仑保险经纪核心业务系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <link th:href="@{/static/layui/css/layui.css}" rel="stylesheet" media="all"/>

<style type="text/css">
.layadmin-iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

</style>

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo" th:text="${session.userBean.sysName}"></div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a href="">控制台</a></li>
      <li class="layui-nav-item"><a href="">商品管理</a></li>
      <li class="layui-nav-item"><a href="">用户</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;">其它系统</a>
        <dl class="layui-nav-child">
          <dd><a href="">邮件管理</a></dd>
          <dd><a href="">消息管理</a></dd>
          <dd><a href="">授权管理</a></dd>
        </dl>
      </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
		    <a href="">系统消息<span class="layui-badge">9</span></a>
		  </li>
      
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
          <span th:text="${session.userBean.loginUser.name}"></span>
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          <dd><a href="">安全设置</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="">退了</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">业务管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">客户管理</a></dd>
            <dd><a href="javascript:;">保险方案</a></dd>
            <dd><a href="javascript:;">经纪业务备案</a></dd>
            <dd><a href="javascript:;">再保业务备案</a></dd>
            <dd><a href="javascript:;">风险业务备案</a></dd>
            <dd><a href="javascript:;">内控业务备案</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">业务查询</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">客户查询</a></dd>
            <dd><a href="javascript:;">保单查询</a></dd>
            <dd><a href=""></a></dd>
          </dl>
        </li>
 		<li class="layui-nav-item">
          <a href="javascript:;">系统管理</a>
          <dl class="layui-nav-child">
             <dd> 
                <a href="/list" >用户管理</a>
             </dd>      
            <dd><a href="javascript:;">权限管理</a></dd>
            <dd><a href="javascript:;">字典管理</a></dd>
            <dd><a href=""></a></dd>
          </dl>
        </li>
 
 
 
       </ul>
    </div>
  </div>
  
 <div class="layui-body" id="LAY_app_body">
     <div class="layui-tab" lay-filter="demo">
		  <ul class="layui-tab-title">
		    <li class="layui-this">网站设置</li>
		    <li>商品管理</li>
		    <li>订单管理</li>
		  </ul>
		  <div class="layui-tab-content">
		    <div class="layui-tab-item layui-show">内容1</div>
		    <div class="layui-tab-item">内容2</div>
		    <div class="layui-tab-item">内容3</div>
		  </div>
		</div>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    ©系统管理员
  </div>
</div>
<script th:src="@{/static/layui/layui.all.js}"></script>   
<script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
  //新增一个Tab项
  element.tabAdd('demo', {
      title: '用户管理' //用于演示
    , content: '<iframe data-frameid="111" frameborder="0" name="content" scrolling="no" width="100%" src="/list"></iframe>'
    , id:'123321' //实际使用一般是规定好的id，这里以时间戳模拟下
   
  })
  FrameWH();//计算框架高度  
});


function FrameWH() {
    var h = $(window).height() -41- 10 - 60 -10-44 -10;
    $("iframe").css("height",h+"px");
}

$(window).resize(function () {
    FrameWH();
})

</script>
<script>

</script>
</body>
</html>
